<?php defined('SYSPATH') or die('No direct script access.'); ?>
 
<?php echo HTML::anchor("product/new", "Product List"); ?>
 
<?php foreach ($products as $product) : ?>
<div style="background-color: #dddddd; margin: 0px 2px 0px 2px">
    <h2><?php echo $product->product_name; ?></h2>
    <pre><?php echo $product->price; ?></pre>
    <?php echo HTML::anchor("product/view/".$product->id, "View"); ?>
    <?php echo HTML::anchor("product/edit/".$product->id, "Edit"); ?>
    <?php echo HTML::anchor("product/delete/".$product->id, "Delete"); ?>
</div>
<?php endforeach; ?>